package com.wsy.mapper;


import com.wsy.entity.Line;
import com.wsy.entity.LineType;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

public interface AdminMapper {
//    @Select("SELECT * FROM line l left JOIN linetype lt on l.lineTypeID=lt.lineTypeID")
    List<Line> getLine();

    List<Line> getGroupbuy();

    List<LineType> getLineType();

    List<LineType> GetTeamBuy();

//    添加线路信息
    int PostLine( Line line);

    //    修改线路信息
    int PutLine( Line line);

//    设置团购
    int PutBuy(Line line);

    List<Line> getOrder();

    int delOrder(int id);

    int delCustomer(int id);

    List<Line> getCustomer(Line line);

}
